package com.inspinia.oss.rpc.service;

import com.inspinia.base.dao.BaseDao;
import com.inspinia.base.service.BaseServiceImpl;
import com.inspinia.oss.dao.SysOssDao;
import com.inspinia.oss.model.SysOssEntity;
import com.inspinia.oss.rpc.api.SysOssService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("sysOssService")
public class SysOssServiceImpl extends BaseServiceImpl<SysOssEntity> implements SysOssService {
	@Override
	protected BaseDao<SysOssEntity> getDao() {
		return sysOssDao;
	}

	@Autowired
	private SysOssDao sysOssDao;
	
	@Override
	public SysOssEntity queryObject(Long id){
		return sysOssDao.queryObject(id);
	}
	
	@Override
	public List<SysOssEntity> queryList(){
		return sysOssDao.queryList();
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysOssDao.queryTotal(map);
	}
	
	@Override
	public void save(SysOssEntity sysOss){
		sysOssDao.save(sysOss);
	}

	@Override
	public int update(SysOssEntity sysOss){
		return sysOssDao.update(sysOss);
	}
	
	@Override
	public int delete(Long id){
		return sysOssDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		sysOssDao.deleteBatch(ids);
	}
	
}
